package modules.createplayer.value
{
import values.avatar.AvatarTemplateValue;
import values.avatar.AvatarTemplateValueList;

public class CreatePlayerAvatarValue
{
	[Data(type="field" , mapping="@index")]
	public var index:int;
	
	[Data(type="field" , mapping="@key")]
	public var avatarKey:String;
	
	public function get avatarTemplate():AvatarTemplateValue
	{
		return AvatarTemplateValueList.getByKey(avatarKey);
	}
}
}